package tau.pimpmyfreedb.common.types;

public class Tuple<X, Y> {
	private final X x;
	private final Y y;

	public Tuple(X x, Y y) {
		this.x = x;
		this.y = y;
	}

	public X getX() {
		return x;
	}

	public Y getY() {
		return y;
	}
	
	@Override
	public boolean equals(Object arg0) {
	    if (arg0 instanceof Tuple<?, ?>){
		Tuple<?, ?> temp = (Tuple<?, ?>)arg0;
		return (this.getX().equals(temp.getX()) && this.getY().equals(temp.getY()));
	    }
	return super.equals(arg0);
	}
}

